package com.dabai.iot.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dabai.iot.core.entity.AlarmDeviceRelationEntity;

import java.util.List;

/**
 * 告警设备关联 Service 接口
 *
 * @author kev1n
 */
public interface IAlarmDeviceRelationService extends IService<AlarmDeviceRelationEntity> {

    /**
     * 根据 alarmId 获取绑定关系
     */
    List<AlarmDeviceRelationEntity> getRelationListByAlarmId(Long alarmId);

    /**
     * 根据 alarmId 删除绑定关系
     */
    void removeRelationListByAlarmId(Long alarmId);

}
